<?php
// 我的留言分页
//
//

require_once $this->website['path']['action'] . '/app/token.php';
$json = array('status' => 'error', 'msg' => 'error', 'data' => []);

$p = fn_post('p', 1);
$uid = fn_post('uid', 1);

$json['data'] = $this->website['class']['db']
	->table('movie_comment')
	->field('id', 'createtime', 'cont')
	->where('uid=?', $uid)
	->order('createtime desc')
	->num(10)
	->page($p)
	->paging();

$json['msg'] = 'ok';
$json['status'] = 'ok';

$this->json_encode_encrypt($json);